package goodclass

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type LsGoodClassRouter struct {}

// InitLsGoodClassRouter 初始化 lsGoodClass表 路由信息
func (s *LsGoodClassRouter) InitLsGoodClassRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	lsGoodClassRouter := Router.Group("lsGoodClass").Use(middleware.OperationRecord())
	lsGoodClassRouterWithoutRecord := Router.Group("lsGoodClass")
	lsGoodClassRouterWithoutAuth := PublicRouter.Group("lsGoodClass")
	{
		lsGoodClassRouter.POST("createLsGoodClass", lsGoodClassApi.CreateLsGoodClass)   // 新建lsGoodClass表
		lsGoodClassRouter.DELETE("deleteLsGoodClass", lsGoodClassApi.DeleteLsGoodClass) // 删除lsGoodClass表
		lsGoodClassRouter.DELETE("deleteLsGoodClassByIds", lsGoodClassApi.DeleteLsGoodClassByIds) // 批量删除lsGoodClass表
		lsGoodClassRouter.PUT("updateLsGoodClass", lsGoodClassApi.UpdateLsGoodClass)    // 更新lsGoodClass表
	}
	{
		lsGoodClassRouterWithoutRecord.GET("findLsGoodClass", lsGoodClassApi.FindLsGoodClass)        // 根据ID获取lsGoodClass表
		lsGoodClassRouterWithoutRecord.GET("getLsGoodClassList", lsGoodClassApi.GetLsGoodClassList)  // 获取lsGoodClass表列表
	}
	{
	    lsGoodClassRouterWithoutAuth.GET("getLsGoodClassPublic", lsGoodClassApi.GetLsGoodClassPublic)  // lsGoodClass表开放接口
	}
}
